package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.domain.entity.PersonLabelEntity;

import java.util.Map;

/**
 * @author jiangren.li
 * @Title: 个人标签实现类
 * @date 2021/09/07
 */
public interface PersonLabelModel {
    Integer insert(PersonLabelEntity entity) throws XbbException;

    Integer updateLabelName(PersonLabelEntity entity) throws XbbException;


    /**
     * 根据相关属性获取个人标签
     * @param corpid
     * @param refType
     * @param refId
     * @param ownerId
     * @return
     */
    PersonLabelEntity getPersonLabelByRefType(String corpid, Integer refType, Long refId, String ownerId);
    PersonLabelEntity getByParamColumns(Map<String, Object> param);
}
